package io.xxx.mario.config;

import io.xxx.mario.task.Task;
import io.xxx.mario.task.api.CreateTaskRequest;
import org.modelmapper.ModelMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ModelMapperConfig {

    @Bean
    public ModelMapper modelMapper() {
        ModelMapper mapper = new ModelMapper();
        mapper.createTypeMap(CreateTaskRequest.class, Task.class);
//        mapper.createTypeMap(SaveRoomRequest.class, Room.class);
        return mapper;
    }
}
